package com.zzz.mcpservice.cnfig;

import com.zzz.mcpservice.service.TestService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ServerConfig {

    @Bean
    public ToolCallbackProvider serverTools(TestService testService) {
        return MethodToolCallbackProvider.builder()
                .toolObjects(testService)
                .build();
    }
}
